-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add matrix code demo #569
Add matrix code demo #569
Conversation
…Fs, a bloom implementation, and noisy color mapping to recreate the code rain effect seen in The Matrix. Added thumbnail to example/img.
#exList li { | ||
list-style-type: disc; | ||
margin-left: 1em; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding support for bulleted lists in example descriptions
bin/build-gallery.js
Outdated
fs.writeFile('www/gallery.html', html) | ||
fs.writeFile('www/gallery.html', html, function(err){ | ||
if (err) { | ||
throw err | ||
} | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Node threw an error, actually, when I first ran the gallery builder, because there was no passed in handler.
console.log('minified ', minFile) | ||
console.log('stdout: ', stdOut) | ||
console.log('stderr: ', stdErr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Outputting this data before attempting to save the file, in case there was a full-blown error that prevented the minified file from being generated in the first place
Thanks for this, @Rezmason! Looks great. The built-in gallery had a dependency on wzrd.in which didn't reliably work, so I think https://github.com/regl-project/regl-gallery is a more promising place to maintain the gallery (additionally, the gallery link on regl.party has been redirected to https://regl-project.github.io/regl/www/gallery.html ). At risk of stepping on toes, I've never maintained the gallery, so I took the liberty of transferring this PR over and rebuilding the gallery: regl-project/regl-gallery#1 It can be nice to distribute small examples with the npm module for easy offline reference, but it's probably additionally a good idea to remove the build scripts from the regl repo to prevent confusion over where the gallery actually lives (pardon the duplication!) |
Sounds good! Removing the redundancy sounds like a good call. |
I still think we can land this. |
Created an advanced demo, using floating point FBOs, GPU compute, MSDFs, a bloom implementation, and noisy color mapping to recreate the code rain effect seen in The Matrix.
This is a simplified version of the project I maintain separately, and recently migrated to REGL.